package com.virus.server.utils;

import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class ThreadUtils {

    private static ThreadPoolExecutor pool = new ThreadPoolExecutor(20,100,60, TimeUnit.SECONDS, new LinkedBlockingDeque<>(10));

    public static void add(Runnable runnable) {
        pool.execute(runnable);
    }
}
